const validate = {
  username: [
    { required: true, trigger: 'blur', message: '用户名不能为空' },
    { max: 20, trigger: 'blur', message: '用户名不能大于20个字符' }
  ],
  password: [
    { required: true, trigger: 'blur', message: '密码不能为空' },
    { max: 18, min: 6, trigger: 'blur', message: '密码只能是6~18个字符' }
  ]
}

export default validate
